package com.itheima.user.api;

import com.itheima.user.model.User;

import java.util.Map;

public interface UserServiceApi {

    /**
     *  注册接口
     * @param user
     * @param code
     * @return
     */
    Map<String,Object> reister(User user, String code);

    /**
     * 登录接口
     * @param user
     * @param code
     * @return
     */
    Map<String,Object> login(User user,String code);

    /**
     * 获取验证码接口
     * @param phone
     * @return
     */
    String getSmsCode(String phone);

}
